import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity('user')
export class User {

  @PrimaryGeneratedColumn()
  id: number;

  @Column({ comment: '用户名' })
  username: string;

  @Column({ comment: '密码' })
  password: string;

  @Column({ comment: '昵称' })
  nikeName: string;

  @Column({ comment: '年龄' })
  age: number;

  @Column()
  isDelete: boolean;
}
